import { httpDelete, httpPost, httpPut } from "@/utils/http"
import type { OrganizationTypeItem } from "./organizationTypeApi";

export interface WorkplaceType {
    name: string;
    organizationTypeId: string | OrganizationTypeItem
}


export const findWorkplaceApi = (data?: object) => {
    return httpPost('/workplaces/search', data)
}
export const deleteWorkplaceApi = (data?: object) => {
    return httpDelete('/workplaces/remove', data)
}
export const addWorkplaceApi = (data?: object) => {
    return httpPost('/workplaces/add', data)
}
export const updateWorkplaceApi = (data?: object) => {
    return httpPut('/workplaces/update', data)
}